<%
    /**
     * 测试发送mq消息
     *
     */
%>
<%@ include file = "/common/ini.jsp"%> 
<%@ page language="java" import="com.companyname.common.mq.*"%>
<%@ page language="java" import="javax.jms.*"%>
<%@ page language="java" import="java.util.*"%>
<%@ include file = "/common/_log4j.jsp"%> 
<%@ include file = "/common/_ApplicationContext_init.jsp"%> 
<%
    // 放消息
    logger.info("1. 发送消息");
    Producer producer = (Producer)applicationContext.getBean("exampleProducer");
    producer.send(" " + System.currentTimeMillis());
    System.out.println("发送完毕");
%>
